package com.designmodel.designmodel.Proxy_Pattern_代理模式.静态代理;

public class ProxySubject implements    Subject {
	private RealSubject realSubject;

	public void preRequest(){
		System.out.println("前置操作");
	}

	@Override
	public void request() {
		preRequest();
		realSubject=new RealSubject();
		realSubject.request();
		afterRequest();
	}

	public void afterRequest(){
		System.out.println("后置操作");
	}
}
